package com.huishao.demo.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (Images)表实体类
 *
 * @author huishao
 * @since 2023-02-17 13:55:42
 */
@ApiModel("Images")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("images")
public class Images implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    /**
     * 表情包名字
     */
    @ApiModelProperty("表情包名字")
    @TableField(value = "images_name")
    private String imagesName;
    /**
     * 表情包路径
     */
    @ApiModelProperty("表情包路径")
    @TableField(value = "images_url")
    private String imagesUrl;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    // fill = FieldFill.INSERT ~ fill = FieldFill.INSERT_UPDATE 自动填充时间！

}

